import getApiData, { getNestApiData } from "@/services/cpasRequest";


// 导出底稿
export async function exportDraft(params: {
    dbname: string;
    sjxmbh: string;
    zcbfid: string;
    targetPath: string;
    dgids: string;
}) {
    const res = await getNestApiData("/draft/exportDraft", 'post', params);
    return res.ok;
}

// 获取底稿接口
// sjdg.exportTree
export async function exportTree(params: {
    dbname: any;
}): Promise<any> {
    const res = await getApiData('sjdg.exportTree', params);
    return res;
}